package com.gh.controller;

import com.gh.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author Eric
 * @Date 2021/8/1 20:00
 * @Version 1.0
 */
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider provider;

    @GetMapping("sendMessage")
    public String sendMessage(){
        return provider.send();
    }
}
